import request from '@/utils/request.js';

// 注册接口
export const postRegister = obj => {
  return request({
    method: 'post',
    url: '/register',
    Headers: { 'Content-Type': 'application/json' },
    data: {
      account: obj.account,
      captcha: obj.captcha,
      email: obj.email,
      nickname: obj.nickname,
      password: obj.password,
    },
  });
};
//  验证码 接口
export const postCaptcha = (url, email) => {
  return request({
    url: url,
    method: 'post',
    params: { email: email },
  });
};
